package com.xb.cloud.product.service.business.model.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xb.cloud.product.service.business.model.ShopNavigationGroup;
import com.xb.cloud.product.service.business.model.ShopNavigationGroupExample;

public interface ShopNavigationGroupMapper {
	long countByExample(ShopNavigationGroupExample example);

	int deleteByExample(ShopNavigationGroupExample example);

	int deleteByPrimaryKey(Long id);

	int insert(ShopNavigationGroup record);

	int insertSelective(ShopNavigationGroup record);

	List<ShopNavigationGroup> selectByExample(ShopNavigationGroupExample example);

	ShopNavigationGroup selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") ShopNavigationGroup record,
			@Param("example") ShopNavigationGroupExample example);

	int updateByExample(@Param("record") ShopNavigationGroup record,
			@Param("example") ShopNavigationGroupExample example);

	int updateByPrimaryKeySelective(ShopNavigationGroup record);

	int updateByPrimaryKey(ShopNavigationGroup record);

	/**
	 * shopId + groupParentId下的最大sort值
	 * 
	 * @param shopId
	 * @param groupParentId
	 */
	Integer selectMaxSort(@Param("shopId") Long shopId, @Param("groupParentId") Long groupParentId);

	/**
	 * shopId下的最大LayerNo值
	 * 
	 * @param shopId
	 * @return
	 */
	Integer selectMaxLayerNo(@Param("shopId") Long shopId);
}